package com.example.pojo;

import lombok.Getter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author yexi
 */
@Component
@ToString(callSuper = true)
@Getter
public class ComponentClass {

    @Value("黄色")
    private String color;

    public ComponentClass() {
        System.out.println("ComponentClass的无参构造器被调用: " + this);
    }


}
